package com.yourname.xhs.dao;

import com.yourname.xhs.entity.User;

import java.util.List;

public interface UserDao {
    //插入用户
    public abstract boolean insert(User user) throws Exception;


    //通过用户名查询用户
    public abstract User select(String Username) throws Exception;

    //查看全部用户
    public abstract List<User> selectAllUser() throws Exception;

    //判断管理员
    public abstract String isAdmin(User user) throws Exception;

    //修改个人信息
    public abstract int modifyInfo (User user,String Username) throws Exception;

    //修改密码
    public abstract boolean modifyPassword(User user) throws Exception;


}

